﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XMK.Framework.Config;
using XMK.Framework.DataAccess;

namespace XMK.Tadong.Biz
{
    public  class Config
    {
        public static readonly DbProvider TadongDbProvider;
        public static readonly string SupplierId;

        /// <summary>
        /// 文件存储根目录
        /// </summary>
        public static readonly string FileServerSite;

        public static readonly string DiskFilePath;

        static Config()
        {
            //推荐使用根据Web.Config中的connectionStrings配置节的name获取数据库实现
            TadongDbProvider = ConfigHelper.GetDbProvider("TadongDbConn");
            SupplierId = XMK.Utils.ConfigHelper.GetAppSettingValue("SupplierId", "[XMK-]");
            FileServerSite = XMK.Utils.ConfigHelper.GetAppSettingValue("FileServerSite", "http://localhost/FileServerSite/");
            DiskFilePath = XMK.Utils.ConfigHelper.GetAppSettingValue("DiskPath", "D:/TaDongDoc/");
        }
    }
}
